import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'movies demo',
      home: Scaffold(
        appBar: AppBar(
          title: Text('电影海报实例'),
        ),
        body: GridView.count(
          crossAxisCount: 2,
          padding: EdgeInsets.all(10),
          crossAxisSpacing: 10,
          children: [
            Text('Item'),
            Text('Item'),
            Text('Item'),
            Text('Item'),
            Text('Item'),
            Text('Item'),
            Text('Item'),
          ],
        ),
      ),
    );
  }
}
